package com.it.cn.p1_HomeWork;

public class Vehicle {
    private String brand;
    private String type;

    public void start(){
        System.out.println(brand+type+"开始启动" );
    }
    public void run(){
        System.out.println(brand+type+"在高速公路上行驶" );
    }

    public Vehicle() {
    }

    public Vehicle(String brand, String type) {
        this.brand = brand;
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
